package com.xifly.datatransmission.domain;

import com.xifly.datatransmission.Phone;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

public class UserModel {

    private String username;

    private String password;

    @Phone
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @NotBlank(message = "密码不能为空")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
